package com.njxxted.activiti.modules.process.extend.dao;

import com.njxxted.activiti.modules.base.dao.BaseDao;
import com.njxxted.activiti.modules.process.extend.entity.ExtendActNodeBtnEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 描述：节点按钮配置表 Dao
 * <p>
 * 作者：HuTongFu
 * 邮箱：hu_tongfu@163.com
 * 时间：2019-08-07 09:34:07
 */
@Mapper
public interface ExtendActNodeBtnDao extends BaseDao<ExtendActNodeBtnEntity> {

    /**
     * 根据条件查询节点与按钮之间的关联关系
     *
     * @param processkey 流程定义key
     * @param taskDefKey 节点id
     * @param btnId      按钮id
     * @return
     */
    Map<String, Object> findNodeBtnMembership(@Param("processKey") String processkey,
                                              @Param("taskDefKey") String taskDefKey,
                                              @Param("btnId") String btnId);
}
